package com.sitech.pojo;

import java.util.Date;

public class UserBean {
	public String id;
	public String username;
	public String password;
	public Date createtime;
	public String age;
	public String email;
	public String remeberMe;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRemeberMe() {
		return remeberMe;
	}
	public void setRemeberMe(String remeberMe) {
		this.remeberMe = remeberMe;
	}
	@Override
	public String toString() {
		return "UserBean [id=" + id + ", username=" + username + ", password=" + password + ", createtime=" + createtime
				+ ", age=" + age + ", email=" + email + "]";
	}
	@Override
	public boolean equals(Object obj) {
		UserBean bn = (UserBean)obj;
		if(bn.getUsername().equals(username)&&bn.getPassword().equals(password)){
			return true;
		}else{
			return false;
		}
	}
	
}
